.class public Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;
.super Lcom/waiqin365/lightapp/base/WqBaseActivity;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field a:Lcom/waiqin365/lightapp/promotion/b/a;

.field private b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

.field private c:Lcom/waiqin365/lightapp/promotion/a/a;

.field private d:Lcom/waiqin365/lightapp/view/NoNetView;

.field private e:Ljava/util/ArrayList;

.field private f:Ljava/lang/String;

.field private g:Ljava/lang/String;

.field private h:Ljava/lang/String;

.field private i:Ljava/lang/String;

.field private j:Ljava/lang/String;

.field private k:Ljava/lang/String;

.field private l:Ljava/lang/String;

.field private m:Ljava/lang/String;

.field private n:Landroid/os/Handler;

.field private o:Z

.field private p:Ljava/lang/String;

.field private q:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 1

    invoke-direct {p0}, Lcom/waiqin365/lightapp/base/WqBaseActivity;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->o:Z

    return-void
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->q:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->e:Ljava/util/ArrayList;

    return-object p1
.end method

.method private a()V
    .locals 5

    const v4, 0x7f0b0039

    const/16 v3, 0x8

    const v0, 0x7f0c0a1e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/base/login/mainview/TitleBar;

    iget-object v1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->f:Ljava/lang/String;

    invoke-static {v1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-nez v1, :cond_0

    iget-object v1, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->e:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->f:Ljava/lang/String;

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :goto_0
    iget-object v1, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->a:Landroid/widget/ImageButton;

    invoke-virtual {v1, p0}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v1, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->h:Landroid/view/View;

    invoke-virtual {v1, v3}, Landroid/view/View;->setVisibility(I)V

    iget-object v0, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->i:Landroid/view/View;

    invoke-virtual {v0, v3}, Landroid/view/View;->setVisibility(I)V

    const v0, 0x7f0c0a20

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/view/NoNetView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v0, v0, Lcom/waiqin365/lightapp/view/NoNetView;->b:Landroid/widget/TextView;

    invoke-virtual {v0, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const v0, 0x7f0c0a1f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->e:Ljava/util/ArrayList;

    new-instance v0, Lcom/waiqin365/lightapp/promotion/a/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->e:Ljava/util/ArrayList;

    invoke-direct {v0, p0, v1}, Lcom/waiqin365/lightapp/promotion/a/a;-><init>(Landroid/content/Context;Ljava/util/ArrayList;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    new-instance v1, Lcom/waiqin365/lightapp/promotion/a;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/promotion/a;-><init>(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/promotion/a/a;->a(Lcom/waiqin365/lightapp/promotion/a/g;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    iget-object v1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setAdapter(Landroid/widget/BaseAdapter;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/promotion/b;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/promotion/b;-><init>(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonRefreshListener(Lcom/waiqin365/lightapp/dailyreport/view/z;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    new-instance v1, Lcom/waiqin365/lightapp/promotion/c;

    invoke-direct {v1, p0}, Lcom/waiqin365/lightapp/promotion/c;-><init>(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)V

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setonHistoryListener(Lcom/waiqin365/lightapp/dailyreport/view/aa;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setHeadViewBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setFooterViewBackgroundResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->f()V

    return-void

    :cond_0
    iget-object v1, v0, Lcom/waiqin365/base/login/mainview/TitleBar;->e:Landroid/widget/TextView;

    const v2, 0x7f080673

    invoke-virtual {p0, v2}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->getString(I)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;Z)V
    .locals 0

    invoke-direct {p0, p1}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->a(Z)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 5

    const/16 v4, 0x8

    const/4 v3, 0x0

    invoke-static {p1, p0}, Lcom/fiberhome/gaea/client/d/c;->a(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/c/b;->b(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->e:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->mContext:Landroid/content/Context;

    const v2, 0x7f080670

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/view/NoNetView;->b(Ljava/lang/String;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    iget-object v1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->e:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/promotion/a/a;->a(Ljava/util/ArrayList;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0, v3}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->setVisibility(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    invoke-virtual {v0, v4}, Lcom/waiqin365/lightapp/view/NoNetView;->setVisibility(I)V

    goto :goto_0
.end method

.method private a(Z)V
    .locals 3

    if-eqz p1, :cond_0

    const-string/jumbo v0, ""

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->showProgressDialog(Ljava/lang/String;)V

    :cond_0
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v1, "condition.funcId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->g:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "condition.id"

    iget-object v2, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->k:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "condition.customer"

    iget-object v2, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->h:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "condition.funcType"

    const-string/jumbo v2, "cuxiao"

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    const-string/jumbo v1, "condition.visitId"

    iget-object v2, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->l:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v1, Lcom/waiqin365/lightapp/visit/a/a/i;

    iget-object v2, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->auth_code:Ljava/lang/String;

    invoke-direct {v1, v2, v0}, Lcom/waiqin365/lightapp/visit/a/a/i;-><init>(Ljava/lang/String;Ljava/util/HashMap;)V

    new-instance v0, Lcom/waiqin365/lightapp/visit/a/b;

    iget-object v2, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->n:Landroid/os/Handler;

    invoke-direct {v0, v2, v1}, Lcom/waiqin365/lightapp/visit/a/b;-><init>(Landroid/os/Handler;Lcom/waiqin365/lightapp/visit/a/c;)V

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/a/b;->start()V

    return-void
.end method

.method static synthetic b(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->l:Ljava/lang/String;

    return-object v0
.end method

.method private b()V
    .locals 1

    new-instance v0, Lcom/waiqin365/lightapp/promotion/d;

    invoke-direct {v0, p0}, Lcom/waiqin365/lightapp/promotion/d;-><init>(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)V

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->n:Landroid/os/Handler;

    return-void
.end method

.method static synthetic c(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->h:Ljava/lang/String;

    return-object v0
.end method

.method private c()V
    .locals 8

    const/4 v7, 0x1

    const/4 v1, 0x0

    sget-object v0, Lcom/fiberhome/gaea/client/b/a/a;->a:Ljava/lang/String;

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->m:Ljava/lang/String;

    new-instance v2, Ljava/io/File;

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->m:Ljava/lang/String;

    invoke-direct {v2, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v2}, Ljava/io/File;->exists()Z

    move-result v0

    if-nez v0, :cond_0

    invoke-virtual {v2}, Ljava/io/File;->mkdirs()Z

    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v3, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->m:Ljava/lang/String;

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v3, "cuxiao_record_data"

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0, p0}, Lcom/fiberhome/gaea/client/d/c;->a(Ljava/lang/String;Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    new-instance v3, Ljava/util/HashMap;

    invoke-direct {v3}, Ljava/util/HashMap;-><init>()V

    :try_start_0
    new-instance v4, Lorg/json/JSONObject;

    invoke-direct {v4, v0}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    invoke-virtual {v4}, Lorg/json/JSONObject;->keys()Ljava/util/Iterator;

    move-result-object v5

    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v4, v6}, Lorg/json/JSONObject;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    invoke-virtual {v3, v6, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    :cond_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->l:Ljava/lang/String;

    invoke-virtual {v3, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    const-string/jumbo v3, "cuxiao_%s_%s"

    const/4 v4, 0x2

    new-array v4, v4, [Ljava/lang/Object;

    iget-object v5, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->l:Ljava/lang/String;

    aput-object v5, v4, v1

    aput-object v0, v4, v7

    invoke-static {v3, v4}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_4

    iget-boolean v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->o:Z

    if-eqz v0, :cond_4

    new-instance v0, Lcom/waiqin365/lightapp/promotion/e;

    invoke-direct {v0, p0, v3}, Lcom/waiqin365/lightapp/promotion/e;-><init>(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;Ljava/lang/String;)V

    invoke-virtual {v2, v0}, Ljava/io/File;->listFiles(Ljava/io/FilenameFilter;)[Ljava/io/File;

    move-result-object v2

    move v0, v1

    :goto_1
    array-length v1, v2

    if-ge v0, v1, :cond_3

    aget-object v1, v2, v0

    invoke-virtual {v1}, Ljava/io/File;->isFile()Z

    move-result v1

    if-eqz v1, :cond_2

    aget-object v1, v2, v0

    invoke-virtual {v1}, Ljava/io/File;->delete()Z

    :cond_2
    add-int/lit8 v0, v0, 0x1

    goto :goto_1

    :cond_3
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->m:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->q:Ljava/lang/String;

    new-instance v0, Ljava/io/File;

    iget-object v1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->q:Ljava/lang/String;

    invoke-direct {v0, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->q:Ljava/lang/String;

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->a(Ljava/lang/String;)V

    :goto_2
    return-void

    :cond_4
    invoke-direct {p0, v7}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->a(Z)V

    goto :goto_2
.end method

.method static synthetic d(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->i:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic e(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->j:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic f(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Ljava/lang/String;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->p:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic g(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    return-object v0
.end method

.method static synthetic h(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Ljava/util/ArrayList;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->e:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic i(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Landroid/content/Context;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic j(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Lcom/waiqin365/lightapp/view/NoNetView;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->d:Lcom/waiqin365/lightapp/view/NoNetView;

    return-object v0
.end method

.method static synthetic k(Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;)Lcom/waiqin365/lightapp/promotion/a/a;
    .locals 1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    return-object v0
.end method


# virtual methods
.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 4

    const/4 v2, -0x1

    invoke-super {p0, p1, p2, p3}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onActivityResult(IILandroid/content/Intent;)V

    const/16 v0, 0xd8

    if-ne p1, v0, :cond_0

    if-ne p2, v2, :cond_0

    :try_start_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/promotion/a/a;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->a:Lcom/waiqin365/lightapp/promotion/b/a;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v1

    if-eq v1, v2, :cond_1

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/promotion/a/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/promotion/b/a;

    const-string/jumbo v2, "1"

    iput-object v2, v0, Lcom/waiqin365/lightapp/promotion/b/a;->m:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/promotion/a/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/promotion/b/a;

    const-string/jumbo v2, "1"

    iput-object v2, v0, Lcom/waiqin365/lightapp/promotion/b/a;->i:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/promotion/a/a;->a:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/promotion/b/a;

    const-string/jumbo v1, "1"

    iput-object v1, v0, Lcom/waiqin365/lightapp/promotion/b/a;->j:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/promotion/a/a;->notifyDataSetChanged()V

    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c:Lcom/waiqin365/lightapp/promotion/a/a;

    iget-object v0, v0, Lcom/waiqin365/lightapp/promotion/a/a;->a:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->q:Ljava/lang/String;

    invoke-static {v0, v1}, Lcom/waiqin365/lightapp/visit/c/b;->a(Ljava/util/ArrayList;Ljava/lang/String;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    new-instance v0, Ljava/util/HashMap;

    invoke-direct {v0}, Ljava/util/HashMap;-><init>()V

    const-string/jumbo v1, "type"

    sget-object v2, Lcom/fiberhome/gaea/client/a/e;->n:Lcom/fiberhome/gaea/client/a/e;

    invoke-virtual {v0, v1, v2}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    const-class v2, Lcom/waiqin365/lightapp/visit/SeniorVisitProcessSelectActivity;

    invoke-interface {v1, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    invoke-static {}, Lcom/fiberhome/gaea/client/a/b;->a()Lcom/fiberhome/gaea/client/a/b;

    move-result-object v2

    const-string/jumbo v3, "reinit_activity"

    invoke-virtual {v2, v3, v0, v1}, Lcom/fiberhome/gaea/client/a/b;->a(Ljava/lang/String;Ljava/lang/Object;Ljava/util/List;)V

    :cond_0
    return-void

    :cond_1
    :try_start_1
    iget-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b:Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/dailyreport/view/CustomListview;->e()V
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    goto :goto_0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 1

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    sparse-switch v0, :sswitch_data_0

    :goto_0
    return-void

    :sswitch_0
    invoke-virtual {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->back()V

    goto :goto_0

    :sswitch_1
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->a(Z)V

    goto :goto_0

    nop

    :sswitch_data_0
    .sparse-switch
        0x7f0c008a -> :sswitch_0
        0x7f0c0c3d -> :sswitch_1
    .end sparse-switch
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 3

    invoke-super {p0, p1}, Lcom/waiqin365/lightapp/base/WqBaseActivity;->onCreate(Landroid/os/Bundle;)V

    const v0, 0x7f0301ea

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->setContentView(I)V

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "funcname"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->f:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "funcid"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->g:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "cmId"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->h:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "cmName"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->i:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "cmLocation"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->j:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "id"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->k:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "visitid"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->l:Ljava/lang/String;

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "isCache"

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->o:Z

    invoke-virtual {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string/jumbo v1, "functionisOnce"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->p:Ljava/lang/String;

    invoke-direct {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->b()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->a()V

    invoke-direct {p0}, Lcom/waiqin365/lightapp/promotion/SalePromotionActivity;->c()V

    return-void
.end method
